const http = require("http");
const { app, serverConfig } = require("./app");

require("./load").done(() => {
  http
    .createServer(app)
    .listen(serverConfig.port, serverConfig.ip, function () {
      console.warn(
        "[start successful] " + new Date() + " Server is listening on port",
        serverConfig.port
      );
    });
});
